<template>


  <div class="app-container home">
    <el-carousel :interval="5000" arrow="always" height="500px">
      <el-carousel-item v-for="img in items" :key="img.id">
        <h3 class="small">
          <img :src="img.url" alt="slide-image" style="width: 1400px; height: 500px;">
        </h3>
      </el-carousel-item>
    </el-carousel>
    <el-row :gutter="20">
      <el-col :sm="24" :lg="24">

        <h4 class="text-danger" style="text-align: center; color: darkgoldenrod; font-size: 80px;">
          集天下商品，汇四海商机
        </h4>
        <blockquote class="text-warning" style="font-size: 14px">
          点击进入店铺，去寻找你喜欢的东西吧！！！
          <br />
          <el-link
            href="https://www.taobao.com/"
            type="primary"
            target="_blank"
            >https://www.taobao.com/</el-link
          >
          <br />
          点击了解开发者伟大的母校
          <br />
          <el-link
            href="https://new.dlnu.edu.cn/"
            type="primary"
            target="_blank"
            >https://new.dlnu.edu.cn/</el-link
          >
          <br />

        </blockquote>

        <hr />
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :sm="24" :lg="12" style="padding-left: 20px">
        <h2 style="color: #FFD700;">嗨害嗐来了奥商场管理系统</h2>
        <p>
          在经历了10天的开发，我们小组完成了这个商场管理系统，其中包括
          店员信息管理模块，角色管理模块，店铺信息管理模块，仓库信息管理模块。
          在老师的帮助和同学的帮助下，我们顺利完成了本次项目。
        </p>



      </el-col>

      <el-col :sm="24" :lg="12" style="padding-left: 50px">
        <el-popover
          placement="top-start"
          width="200"
          trigger="hover"
          content="今日交易">
            <el-progress slot="reference" :text-inside="true" :stroke-width="35" :percentage="70" ></el-progress>
        </el-popover>
        <el-popover
          placement="right"
          width="200"
          trigger="hover"
          content="今日出勤">
          <el-progress slot="reference" :text-inside="true" :stroke-width="35" :percentage="100" status="success"></el-progress>
        </el-popover>
        <el-popover
          placement="right"
          width="200"
          trigger="hover"
          content="今日新增货物">
          <el-progress slot="reference" :text-inside="true" :stroke-width="35" :percentage="20" status="warning"></el-progress>
        </el-popover>
        <el-popover
          placement="bottom"
          width="200"
          trigger="hover"
          content="今日摸鱼">
          <el-progress slot="reference" :text-inside="true" :stroke-width="35" :percentage="50" status="exception"></el-progress>
        </el-popover>

      </el-col>
    </el-row>
    <el-divider />
    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>What day of the month is it today？</span>
          </div>
          <div class="body">
            <el-calendar v-model="value">
            </el-calendar>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>店铺详情</span>
          </div>
          <el-collapse accordion>
            <el-collapse-item title="隔壁哲衬衫店">
              <ol>
                <h4>连续10年衬衫销量稳居第一，遥遥领先，前五古人，后无来者，
                衬衫质量杠杠滴，冬暖夏凉，夏天穿上，像是没穿一样十分轻盈。</h4>

              </ol>
            </el-collapse-item>

            <el-collapse-item title="小冰铁内衣店">
              <ol>
                <h4>德国进口老品牌，穿上犹如穿上防弹衣，金刚不坏，徒手接导弹都不成问题，
                属于我们平常人的金丝软甲，一剑开天门，永不会坏，永不用洗。</h4>


              </ol>
            </el-collapse-item>
            <el-collapse-item title="光tutu羽绒服店">
              <ol>
                <h4>200年老品牌，乾隆皇帝都爱穿，冬天一件胜过10件，一件衣服就能让你冬天再也感受不到
                寒冷，配有进口最新科技，天鹅毛内胆，世界上最知名的设计师阳光亲手设计。</h4>

              </ol>
            </el-collapse-item>
            <el-collapse-item title="小明电子烟专卖店">
              <ol>
                <h4>10年老品牌，电子烟代表新时代，年轻人就该抽电子烟，学会对传统香烟说不，接受顶针新思想
                ，打败王源不是梦，抽一根魂牵梦绕，抽一根醉生梦死，兄弟你今天抽烟了吗？</h4>
              </ol>
            </el-collapse-item>
          </el-collapse>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card class="update-log">
          <div slot="header" class="clearfix">
            <span>热门店铺</span>
          </div>
          <div class="body">
            <img
              src="@/assets/images/pay.png"
              alt="donate"
              width="100%"
            />
            <span style="display: inline-block; height: 30px; line-height: 30px"
              >本周热门店铺：隔壁哲衬衫店<br>
              你想要的我都有，各色各样的服装，欢迎大家前来！！！<br>
              <el-link
                href="https://www.taobao.com/"
                type="primary"
                target="_blank"
              >点击进入全世界最好的衬衫店</el-link
              >
            </span
            >
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.7",
      value: new Date(),
      items: [
        {url: require('../assets/images/image1.jpg'), id: 1},
        {url: require('../assets/images/image2.jpg'), id: 2},
        {url: require('../assets/images/image3.jpg'), id: 3},
        {url: require('../assets/images/image4.jpg'), id: 4}
      ]
    };
  },
  methods: {
    // getImageUrl(item) {
    //   return  require(`./assets/images/image${item}.jpg`)
    // },
    goTarget(href) {
      window.open(href, "_blank");
    }
  }
};
</script>
<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
</style>

